class DragonBonesManager 
{
    public static parseArmatureData(_fileName:string):void
    {
        let dragonbonesData = RES.getRes(_fileName + "_ske_json");
		let textureData = RES.getRes(_fileName + "_tex_json");
		let texture = RES.getRes(_fileName + "_tex_png");

        let egretFactory: dragonBones.EgretFactory = dragonBones.EgretFactory.factory;
		egretFactory.parseDragonBonesData(dragonbonesData);  
		egretFactory.parseTextureAtlasData(textureData, texture);
    }

    public static createArmatrue(_armatrue:string, _animation:string = null, _playTimes:number = 0)
        :dragonBones.EgretArmatureDisplay
    {
		let egretFactory: dragonBones.EgretFactory = dragonBones.EgretFactory.factory;

		let armature: dragonBones.EgretArmatureDisplay = egretFactory.buildArmatureDisplay(_armatrue);
        if(_animation)
        {
             armature.animation.play(_animation, _playTimes);
        }
        return armature;
    }
}